import Layout from "@/page/index/";
export default [
  {
    path: "/login",
    name: "登录页",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/page/login/index"),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: "/404",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/components/error-page/404"),
    name: "404",
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: true
    }
  },

  {
    path: "/403",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/components/error-page/403"),
    name: "403",
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: "/500",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/components/error-page/500"),
    name: "500",
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: "/",
    name: "主页",
    redirect: "/wel"
  },
  {
    path: "/myiframe",
    component: Layout,
    redirect: "/myiframe",
    children: [
      {
        path: ":routerPath",
        name: "iframe",
        component: () =>
          import(/* webpackChunkName: "page" */ "@/components/iframe/main"),
        props: true
      },
      {
        path: "/add", // 房屋新增
        component: () =>
          import(/* webpackChunkName: "page" */ "@/views/market/estate/rmproject/addhouse"),
        name: "addhouse",
        meta: {
          keepAlive: true,
          isTab: false,

        }
      },
      {
        path: "/houselist", //房屋详情 coupons
        component: () =>
          import(/* webpackChunkName: "page" */ "@/views/market/estate/rmproject/houselist.vue"),
        name: "houselist",
        meta: {
          keepAlive: true,
          isTab: false,

        }
      },
      {
        path: "/Carcoupons", //优惠卷 coupons
        component: () =>
          import(/* webpackChunkName: "page" */ "@/views/conpus/coupons.vue"),
        name: "coupons",
        meta: {
          keepAlive: true,
          isTab: false,

        }
       },
      // {
      //   path: "/market/payment", //缴费管理
      //   component: () =>
      //     import(/* webpackChunkName: "page" */ "@/views/market/payment/index.vue"),
      //     name: "payment",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/market/refund", //退费管理
      //   component: () =>
      //     import( "@/views/market/refund/index.vue"),
      //     name: "refund",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/market/contract/ctprojectTemplate", //合同模板
      //   component: () =>
      //     import( "@/views/market/contract/ctprojectTemplate/index.vue"),
      //     name: "ctprojectTemplate",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/market/contract/ctprojectSale/Carcoupons", //销售合同
      //   component: () =>
      //     import( "@/views/market/contract/ctprojectSale/index.vue"),
      //     name: "ctprojectSale",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/video", //视频监控
      //   component: () =>
      //     import("@/views/video/index"),
      //     name: "video",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/temporaryParking", //临时停车费 temporaryParking
      //   component: () =>
      //     import(/* webpackChunkName: "page" */ "@/views/car/temporaryParking/index.vue"),
      //   name: "temporaryParking",
      //   label: "临时停车费",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/market/estate/rmproject/subscribeHose", //预约房屋 subscribeHose
      //   component: () =>
      //     import(/* webpackChunkName: "page" */ "@/views/market/estate/rmproject/subscribeHose.vue"),
      //   name: "subscribeHose",
      //   label: "预约房屋",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/order/meetingOrder/index", //会议室预定
      //   component: () =>
      //     import(/* webpackChunkName: "page" */ "@/views/order/meetingOrder/index"),
      //   name: "meetingOrder",
      //   label: "会议室预定",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/order/activityOrder/index", //活动场地预定
      //   component: () =>
      //     import(/* webpackChunkName: "page" */ "@/views/order/activityOrder/index"),
      //   name: "activityOrder",
      //   label: "会议室预定",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // },
      // {
      //   path: "/parkingManagement/index", //非商用车停车费
      //   component: () =>
      //     import(/* webpackChunkName: "page" */ "@/views/parkingManagement/index"),
      //   name: "parkingManagement",
      //   label: "非商用车停车费",
      //   meta: {
      //     keepAlive: true,
      //     isTab: false,

      //   }
      // }

    ]
  },
  {
    path: "*",
    redirect: "/404"
  }
];
